/**
 * Copyright (C) 2012-2013 jumei, Inc.
 * ServicePipeLineFactory.java
 * 2015年6月25日
 */
package org.goface.rpc.pipeline;

/**
 * @author jm110
 */
public class ServicePipeLineFactory {

    public static ServicePipeLine createClientSidePipeLine() {
        ServicePipeLine servicePipeLine = new DefaultServicePipeline();
        servicePipeLine.addLast(new DefaultRouterHandler());
        return servicePipeLine;
    }

    public static ServicePipeLine createServerSidePipeLine() {
        ServicePipeLine servicePipeLine = new DefaultServicePipeline();
        return servicePipeLine;
    }

    // 实现服务级别的pipeline
    public static ServicePipeLine createServerSidePipeLine(String serviceId) {
        ServicePipeLine servicePipeLine = new DefaultServicePipeline();
        return servicePipeLine;
    }

    public static ServicePipeLine createClientSidePipeLine(String serviceId) {
        ServicePipeLine servicePipeLine = new DefaultServicePipeline();
        return servicePipeLine;
    }

}
